package org.langqiao.exception;

public class FinallyFlowTest {
	
	public static void main(String[] args){
		int test = test();
		System.out.println(test);
	}
	
	public static int test(){
		int count = 5;
		try{
			//return ++count;
			throw new RuntimeException("测试异常");
		}finally{
			System.out.println("finally 代码块被执行");
			return count;
		}
	}

}
